﻿/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here. For example:
    config.language = 'vi';
    config.skin = "office2003";
    config.uiColor = '#AADC6E';
    config.resize_enabled = false;

    config.filebrowserBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( CKEDITOR.basePath + 'filemanager/connectors/php/connector.php');
    config.filebrowserImageBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/default/browser.html?type=Image&Connector=' + encodeURIComponent( CKEDITOR.basePath + 'filemanager/connectors/php/connector.php');
    config.filebrowserFlashBrowseUrl = CKEDITOR.basePath + 'filemanager/browser/default/browser.html?type=Flash&Connector=' + encodeURIComponent( CKEDITOR.basePath + 'filemanager/connectors/php/connector.php');
    config.filebrowserImageUploadUrl = CKEDITOR.basePath + 'filemanager/connectors/php/upload.php?Type=Image' ;
    config.filebrowserFlashUploadUrl = CKEDITOR.basePath + 'filemanager/connectors/php/upload.php?Type=Flash' ;

    config.toolbar = 'owl';

    config.toolbar_owl =
    [
    ['Source','Preview'],
    ['Cut','Copy','Paste','PasteText','PasteFromWord'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    '/',
    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
    '/',
    ['Format','Font','FontSize'],
    '/',
    ['TextColor','BGColor'],
    ['Maximize', 'About'],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
    '/'
    ];

};
